<div id="box_show_chitiet">
    <div class="noidung_chinh">
        <p class="title_show_detail">

            <span><?php echo $model->title ?></span><br/>
            <?php echo date('m/d/Y', strtotime($model->adddate)) ?>
        </p>

        <div class="print_box">
            <b>
                <?php echo $model->short ?>
            </b>
            <br/>
            <?php echo $model->content ?>
        </div>

        <div class="nguon_news"><b> <?php echo $user != null ? $user->user_name : "" ?> -
                <?php echo $model->source ?></b></div>

        <?php if ($model->tags) {
            $news_code = '';
            $array = explode(',', $model->tags);
            if (is_array($array)) {
                $tag_links = null;
                foreach ($array as $a) {
                    $a = trim($a);
                    $tag_links .= '<a href="' . TreTodayUrl::getSearchUrl(($a)) . '">' . $a . '</a>, ';
                }
                $tag_links = substr($tag_links, 0, -2);
                $news_code .= '<b>Tags:</b> ' . $tag_links;
            }
            echo $news_code;
        }?>
    </div>
</div>


<!--<div class="tool_mess01">-->
<!---->
<!--    <p class="width_107" style="float:right;margin-right:10px"><a-->
<!--            href="#"-->
<!--            target="_blank">In bài viết</a></p>-->
<!--</div>-->
<div class="ykien_baodoc">
    <div class="title">
        <strong><a href="javascript:showHideIdAuto_ykien();">Ý kiến bạn đọc</a></strong>
        <label id="collap_js_ykien" class="icon_up_down" onClick="showHideIdAuto_ykien();"></label>
    </div>
    <div class="noidung" id="noidung_ykien">
        <div id="disqus_thread"></div>
        <script type="text/javascript">
            /* * * CONFIGURATION VARIABLES: EDIT BEFORE PASTING INTO YOUR WEBPAGE * * */
            var disqus_shortname = 'tretodaytre'; // required: replace example with your forum shortname

            /* * * DON'T EDIT BELOW THIS LINE * * */
            (function () {
                var dsq = document.createElement('script');
                dsq.type = 'text/javascript';
                dsq.async = true;
                dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
                (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
            })();
        </script>

        <noscript>Vui lòng bật javascript để sử dụng tính năng này.</noscript>


    </div>
</div>

<div class="cac_tin_khac">
    <div class="title">Các tin khác</div>
    <div class="noidung">
        <?php foreach ($relate_news as $item) { ?>
            <p>
                <a href="<?php echo TreTodayUrl::getNewsUrl($item->newsid, $item->title) ?>"><b>»
                        <?php echo $item->title ?></b></a> <?php echo date('m/d/Y', strtotime($item->adddate)) ?>
            </p>

        <?php } ?>

    </div>
</div>